<table id="table_produit" >  
	<tr>
		<td class="image" rowspan=7><img src="<?php echo $data->urlImage ?>" alt="<?php echo $data->nom ?>" height="180px" width="180px"/></td>
		<td class="label"><?php echo CHtml::encode($data->getAttributeLabel('nom')); ?></td>
		<td class="valeur">: <?php echo CHtml::link(CHtml::encode($data->nom), array('view', 'id'=>$data->id)); ?></td>
	</tr>
	<tr>
		<td class="label"><?php echo CHtml::encode($data->getAttributeLabel('poids')); ?>
		<td class="valeur">: <?php echo CHtml::encode($data->poids); ?> g</td>
	</tr>
	<tr>
		<td class="label"><?php echo CHtml::encode($data->getAttributeLabel('dimension')); ?></td>
		<td class="valeur">: <?php echo CHtml::encode($data->dimension); ?></td>
	</tr>
	<tr>
		<td class="label"><?php echo CHtml::encode($data->getAttributeLabel('quantite')); ?></td>
		<td class="valeur">: <?php echo CHtml::encode($data->quantite); ?></td>
	</tr>
	<tr>
		<td class="label"><?php echo CHtml::encode($data->getAttributeLabel('prix')); ?></td>
		<td class="valeur">: <?php echo CHtml::encode($data->prix); ?> &euro;</td>
	</tr>
	<tr>
		<td class="boutonBoutique" colspan=3>
			<table>
				<tr>
					<td>
						<?php echo Chtml::form(array('/produit/ficheDetaillee'))?>
						<?php echo Chtml::hiddenField("id",$data->id)?>
						<?php echo CHtml::submitButton('Fiche détaillée'); ?>
						<?php echo Chtml::endForm()?>
					</td>
					<?php if (Client::getClientFromUser()->id == $data->id_artiste) { ?>
						<td>
							<?php echo CHtml::link(Chtml::button('Editer ce produit'),$this->createUrl('/produit/update',array("id"=>$data->id))); ?>
						</td> <?php
					} else { ?>
						<td>
							<?php echo Chtml::form(array('/panier/ajouter'))?>
							<?php echo Chtml::hiddenField("idProduit",$data->id)?>
							<?php echo CHtml::submitButton('Ajouter au panier'); ?>
							<?php echo Chtml::endForm()?>
						</td> <?php
					} ?>
				</tr>
			</table>
		</td>
	</tr>
		</td>
	</tr>
</table>